﻿using System.Web;
using KL.UFrame.Data.Business.Account;
using KL.UFrame.Data.Entities;
using Microsoft.AspNet.Identity.Owin;

namespace KL.UFrame.Api.Providers
{
    /// <summary>
    /// 创建当前上下文中使用的ApplicationUserManager。
    /// By：杨超
    /// </summary>
    public class K9ApplicationUserManagerProvider : IK9ApplicationUserManagerProvider
    {
        public K9ApplicationUserManagerProvider()
        {

        }

        public ApplicationUserManager GetApplicationUserManager()
        {
            return HttpContext.Current.GetOwinContext().GetUserManager<ApplicationUserManager>();
        }
    }
}